<template>
  <div>
    <transition name="fade">
      <slot></slot>
    </transition>
  </div>
</template>

<script>
  export default {
    name:'Fade'
  }
</script>

<style lang="stylus" scoped>
  .fade-enter-active, .fade-leave-active {
    transition: opacity .5s;
  }
  .fade-enter, .fade-leave-to {
    opacity: 0;
  }
</style>
